package com.fast.security.service;

import org.springframework.security.access.PermissionEvaluator;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 * Class PermissionEvaluatorImpl
 *
 * @Auther: lhy
 * @Date: 2021/12/8 18:35
 * @Mail: 190643201@qq.com
 */
@Service
public class PermissionEvaluatorImpl implements PermissionEvaluator {
    @Override
    public boolean hasPermission(Authentication authentication, Object o, Object o1) {
        System.out.println("hasPermission" + o);
        return true;
    }

    @Override
    public boolean hasPermission(Authentication authentication, Serializable serializable, String s, Object o) {
        System.out.println("hasPermission");
        return true;
    }
}
